package com.mathofmattix.books;


import java.io.Serializable;

public class Book implements Serializable {

	private static final long serialVersionUID = -281036994551038564L;
	private String title;
	private String author;
	private int releaseDate;
	private boolean hardcover;
	private long isbn;
	private int numberOfCopies;

	public Book(String title, String author, int releaseYear) {
		this(0000000000, title, author, releaseYear, false, 1);
	}
	
	public Book(long isbn, String title, String author, int releaseYear) {
		this(isbn, title, author, releaseYear, false, 1);
	}
	
	public Book(String title, String author, int releaseYear, int numberOfCopies) {
		this(0000000000, title, author, releaseYear, false, numberOfCopies);
	}
	
	public Book(long isbn, String title, String author, int releaseYear, int numberOfCopies) {
		this(isbn, title, author, releaseYear, false, numberOfCopies);
	}

	public Book(long isbn, String title, String author, int releaseYear,
			boolean hardCover, int numberOfCopies) {
		setIsbn(isbn);
		setTitle(title);
		setAuthor(author);
		setReleaseDate(releaseYear);
		setHardcover(hardCover);
		setNumberOfCopies(numberOfCopies);
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public int getReleaseDate() {
		return releaseDate;
	}

	public void setReleaseDate(int releaseYear) {
		this.releaseDate = releaseYear;
	}

	public boolean isHardcover() {
		return hardcover;
	}

	public void setHardcover(boolean hardcover) {
		this.hardcover = hardcover;
	}

	public long getIsbn() {
		return isbn;
	}

	public void setIsbn(long isbn) {
		this.isbn = isbn;
	}

	public int getNumberOfCopies() {
		return numberOfCopies;
	}

	public void setNumberOfCopies(int numberOfCopies) {
		this.numberOfCopies = numberOfCopies;
	}

}